#include "axon.h"


axon::axon(){
  f_signal = 0.;
  b_signal = 0.;
}

axon::axon(const double &fs, const double &bs){
  f_signal = fs;
  b_signal = bs;
}

axon::axon(const axon &a){
  f_signal = a.f_signal;
  b_signal = a.b_signal;

  for(int icount = 0; icount < MAX_STUDY_SIGNAL_BUFFER; icount ++) {
   f_signal_study[icount] = a.f_signal_study[icount];
   b_signal_study[icount] = a.b_signal_study[icount];
  }
}

axon::~axon(void){
}

void axon::setFSignal(double s){
  f_signal = s;
}

double axon::getFSignal(void){
  return f_signal;
}

void axon::setBSignal(double s){
  b_signal = s;
}

double axon::getBSignal(void){
  return b_signal;
}

void axon::setFStudySignal(int index, double val)
{
  f_signal_study[index] = val;
}

double axon::getFStudySignal(int index)
{
  return f_signal_study[index];
}

void axon::setBStudySignal(int index, double val)
{
  b_signal_study[index] = val;
}

double axon::getBStudySignal(int index)
{
  return b_signal_study[index];
}
